<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\CustMaster */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="cust-master-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'username')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'mobile')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'pwd')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'member_no')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'wx_openid')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'wx_scan_openid')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'wx_unionid')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'wx_nickname')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'wx_sex')->textInput() ?>

    <?= $form->field($model, 'x_province')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'wx_city')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'wx_country')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'wx_headimgurl')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'wx_privilege')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'memo')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'use_flg')->textInput() ?>

    <?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'creator')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'create_time')->textInput() ?>

    <?= $form->field($model, 'edit_time')->textInput() ?>

    <?= $form->field($model, 'sex')->textInput() ?>

    <?= $form->field($model, 'member_source')->textInput() ?>

    <?= $form->field($model, 'consum_amount')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'current_points')->textInput() ?>

    <?= $form->field($model, 'birthday')->textInput() ?>

    <?= $form->field($model, 'province_code')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'province_name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'city_code')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'city_name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'district_code')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'district_name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'adddress')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'source')->textInput() ?>

    <?= $form->field($model, 'editor')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
